package com.sphd.emanu.activity.pointcommondity;

import android.content.DialogInterface;

import com.sphd.emanu.mvp.BasePresenter;
import com.sphd.emanu.mvp.BaseView;
import com.sphd.emanu.pojo.goods.Category;
import com.sphd.emanu.pojo.goods.Commodity;

import java.util.List;

import cn.pedant.SweetAlert.SweetAlertDialog;

/**
 * MVPPlugin
 *  邮箱 784787081@qq.com
 */

public class PointCommondityContract {
    interface View extends BaseView {
        void setList(List<Commodity> commodityList);

        void setcatelist(List<Category> catelist);

        void commodityList(List<Commodity> commodityList,DialogInterface dialog);

        void upRes(int res);

        void delRes(int res,Integer postion, SweetAlertDialog sweetAlertDialog);
    }

    interface  Presenter extends BasePresenter<View> {
        void selectPointsCommondity(Integer org);
        void getList(int org);
        void getCommDityList(int id, DialogInterface dialog);
        void updatePointsCommondity(Integer materialId,int commondityId,Integer points);
        void delPointsCommondity(int materialId, Integer postion, SweetAlertDialog sweetAlertDialog);
        void addPointsCommondity(int commondityId,int points);
    }
}
